lib/deploy: Port config merge logic to new code style
authorColin Walters <walters@verbum.org>
Fri, 17 Mar 2017 21:18:27 +0000 (17:18 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 24 May 2017 16:31:55 +0000 (16:31 +0000)
commitc6960e63b2c66b5e1523427173e1b48c14aa69c2
treed2a54b63e19b6b3172c04ae4d4d83e833b22a038
parentbe0c02d4f99fc071b18c21856b61c340bb44d5ae
lib/deploy: Port config merge logic to new code style

This is a de-scoping of work I did in preparation for
rpm-ostree [live updates](https://github.com/projectatomic/rpm-ostree/pull/652).
Originally I was going to expose this as a public API.

However, I decided to do things differently, but the cleanup here for new code
style and fd-relative is nice to have anyways.

We rework things to use `OstreeDeployment*`, which the caller is expected to
already have, rather than `GFile*`s pointing to the config directories.

Closes: #741
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c